package cloud.shyidong.core.constant;

/**
 * @Description TODO
 * @Author syd
 * @Date 2023/3/27
 */
public enum ErrorTypeConstant {
    
    BUSINESS_ERROR(1, "业务错误"),
    NO_LOGIN(2, "未登录"),
    NO_FUNCTION(3, "无权限"),
    SYS_ERROR(4, " 系统错误");
    
    private final int type;
    private final String message;
    
    ErrorTypeConstant(int type, String message) {
        this.type = type;
        this.message = message;
    }
    
    public int getType() {
        return type;
    }
    
    public String getMessage() {
        return message;
    }
    
}
